/*
 * Wheel.java
 *
 * Created on 15 maggio 2008, 23.43
 *

 */



import java.util.Random;

public class Wheel {
    
    static String[] element = {"10","100","200","500","Jolly","Passa"};
    static int[] probs = {25, 65, 85, 95, 99, 100};

    public static String getValue(){
        
        int c=5;
        Random r=new Random();
        int i= r.nextInt(101);
        //Controlla se il valore ottenuto e` pari o maggiore della probabilita`
        for (;c>0;c--){
            if(probs[c]<=i)
                return element[c];
        }
        //altrimenti restituisce un valore
     return element[i%6];
    }
    
    public static void main(String args[]){
        for (int i=0;i<200;i++){
            if (i%10<9){
                System.out.print(Wheel.getValue()+"\t");
                //System.out.print(new Random().nextInt(101)+"\t");
            }else{
                System.out.println(Wheel.getValue());
                //System.out.println(new Random().nextInt(101));
            }
            
        }
    }
}
